package com.deruan.hotcore.resource.gui.tree;

import javax.swing.JTree;
import javax.swing.tree.TreePath;

public class ResourceTreeView extends JTree
{
	public ResourceTreeView(ResultTreeModel model) 
	{
		super(model);
		ResultTreeCellRenderer renderer = new ResultTreeCellRenderer();
		setCellRenderer(renderer);
		//setRootVisible(true);
	}
	
	public final void expand(ResultTreeNode node)
	{
		TreePath treePath = new TreePath(node);
		expandPath(treePath);
	}

}
